<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%@ page import="com.yls.except.util.GeneralResult" %>
<%@ page import="org.json.JSONArray" %>
<%@ page import="com.yls.except.util.StringIsempty" %>
<%@ page import="org.json.JSONObject" %>

<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
    session.removeAttribute("shopinfo");
%>

<!DOCTYPE HTML>
<html>
<head>
    <base href="<%=basePath%>">
    <title>订单详情</title>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
    <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>

    <link href="css/OrderDetails_Css.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript" src="js/jquery.js"></script>
    <script type="text/javascript" src="js/public.js"></script>
    <script type="text/javascript" src="js/indent/orderinfo.js"></script>
    <script>
        function back () {
            window.history.back(-1);
        }
    </script>
</head>

<body>

<form id="payinfo" method="post" action="/except/files/repertorypay.jsp">
    <input type="hidden" name="indenttype" id="2"/>
    <input type="hidden" name="nonce_str" id="nonce_str"/>
    <input type="hidden" name="result_sign" id="result_sign"/>
    <input type="hidden" name="timestamp" id="timestamp"/>
    <input type="hidden" name="prepay_id" id="prepay_id"/>
</form>

<jsp:include page="/public.jsp" />
<input type="hidden" id="indentnum" value="<%=request.getParameter("indentnum")%>"/>
<input type="hidden" id="state" value="<%=request.getParameter("state")%>"/>
<input type="hidden" id="repertorytype" value="<%=request.getParameter("repertorytype")%>"/>

<!-- 固定的title 样式 -->
<%--<header class="header">--%>
    <%--<div align="left" class="a">--%>
        <%--<img src="img/arrow_eft_circle.png" style="padding: 10px;height: 28px; width: 28px;" onclick="back()"/>--%>
    <%--</div>--%>

    <%--<div align="center" class="a">--%>
        <%--<span style="padding: 15px;font-size: 20px;color: white;">订单详情</span>--%>
    <%--</div>--%>

    <%--<div align="right" class="a">--%>
        <%--<img src="img/more.png" style="padding: 10px;height: 28px;width: 28px;" />--%>
    <%--</div>--%>
<%--</header>--%>

<!-- 订单当前状态 -->

<div class="order_status">
    <div class="left">
        <ul style="margin-top: 16%;">
            <li><span class="status" id="indentstatedesc">等待卖家发货</span></li>
            <li><span class="status_desc"></span></li>
        </ul>
    </div>
    <div style="margin-right: 40px;">
        <div class="right">
            <img src="img/shipments_red.png" />
        </div>
    </div>
</div>

<div class="order_number">
    <span>订单编号:<%=request.getParameter("indentnum")%></span>
</div>

<div class="delivery_method" id="delivery">
    <span class="span_one">配送方式</span>
    <input class="radio_type" type="radio" id="delivery_indent" disabled="disabled"/> <span class="span_two">订单配送</span>
    <input class="radio_type" type="radio" id="delivery_club" disabled="disabled"/> <span class="span_two">商品仓储</span>
</div>

<hr style="height: 1px; width: 97%; float: right; background-color: #f4f4f4; border: none;" />

<span class="address">收货地址</span>

<hr style="height: 1px; width: 97%; float: right; background-color: #f4f4f4; border: none;" />

<!-- 加载地址 -->

<div>
    <div class="show_address">
        <div class="left">
            <img class="img_size" src="img/consignee.png" />
            <span class="username" id="username">夏天</span>
        </div>
        <div class="right">
            <img class="img_size" src="img/cellphone.png" />
            <span class="phone"><i id="phone">15178889347</i></span>
        </div>
    </div>

    <div class="clearboth"></div>

    <div class="show_address_out">
        <div class="address_div">
            <img class="img_size" src="img/address.png" />
        </div>
        <div style="width: 85%;float: left;margin-bottom: 15px;">
            <span class="address" id="address">浙江省杭州市西湖区转塘街道。浙江省杭州市西湖区转塘街道。浙江省杭州市西湖区转塘街道。</span>
        </div>
    </div>

    <div style="height: 3px;">
        <img src="img/Addsplit.png" class="address_hr" />
    </div>
</div>


<!-- 自定以  hr -->
<hr style="height: 10px; width: 100%; background-color: #f4f4f4; border: none;" />

<!-- 实现订单列表 -->

<div class="store_name">
    <div style="float: left;">
        <img src="img/logo_icon.png" class="add_img" />
        <span>摘记良品</span>
    </div>
    <div style="float: right;">
        <img src="img/right.png" class="right_img" />
    </div>
</div>
<!-- 自定以  hr -->
<hr style="height: 1px; width: 100%; background-color: #f4f4f4; border: none;" />

<!-- 商品详情 -->
<span id="good_info">

</span>

<!-- 自定以  hr -->
<hr style="height: 1px; width: 97%; float: right; background-color: #f4f4f4; border: none;" />

<!-- 运费 -->
<div class="trans_div">
    <span class="tran_span">运费</span>
    <span class="tran_money">￥<i id="freight">10.00</i></span>
</div>
<!-- 自定以  hr -->
<hr style="height: 1px; width: 97%; float: right; background-color: #f4f4f4; border: none;" />

<div class="trans_div">
    <span class="span_all_money">￥<i id="totalmoney">109.00</i></span>
    <span class="span_all_money">合计</span>
</div>
<!-- 10px过度线 -->
<div class="clearboth" style="border: solid #f4f4f4 40px;">
</div>
<!-- 底部的按钮处理 -->

<div class="footer">
    <!-- 加载两个两个按钮 -->
    <div style="float: right;" id="footer">
        <span class="left">取消订单</span>
        <span class="right">立即付款</span>
    </div>
</div>

<div id="pay_bg" style="background: rgba(0,0,0,0.5);height: 100%;width: 100%;position: fixed;top: 0;display: none;"></div>
<div class="cqchoosenum" id="pay_div">
    <div class="pop_pay">
        <div class="pop_title">
            <div class="pop_cancel">
                <img src="img/cancel.png" onclick="showPopup()"/>
            </div>
            <div class="title">支付信息</div>
        </div>
        <hr style="height: 1px; width: 100%; float: right; background-color: #f4f4f4; border: none;"/>
        <div class="clearboth"></div>
        <div class="pay_styl" id="paytype">
            <span class="span_one">支付方式</span>
            <input class="radio_type" type="radio" id="spare_pay" name="paytype" value="1"/> <span class="span_two">余额(￥<i id="sparemoney">200.00</i>)</span>
            <input class="radio_type" type="radio" id="wechat_pay" name="paytype" value="2"/> <span class="span_two">微信支付</span>
        </div>
        <hr style="height: 1px; width: 97%; float: right; background-color: #f4f4f4; border: none;"/>
        <div class="pay_money_div">
            <span style="font-size: 16px;">应付金额</span>
            <span class="pay_money">￥:<i id="money">109.00</i></span>
        </div>
        <!-- 确认支付 -->
        <div id="buy" class="buy_bg" onclick="pay_indent();">
            <span style="width: 90%;font-size: 16px;color: white;">确认支付</span>
        </div>
    </div>
</div>

<jsp:include page="/files/public_hint.jsp" />
</body>

</html>